package org.example.managere.dto.feibiao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 电机基础信息数据传输对象 - 电机向量知识库
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AmKnowledgeBasicDto {
    @NotEmpty(message = "电机ID不能为空")
    @Size(max = 10, message = "电机ID长度不能超过10")
    private String motorId;
    
    @NotEmpty(message = "电机型号不能为空")
    @Size(max = 50, message = "电机型号长度不能超过50")
    private String motorType;
    
    @NotEmpty(message = "生产厂商不能为空")
    @Size(max = 100, message = "生产厂商长度不能超过100")
    private String manufacturer;
    
    @NotNull(message = "额定功率不能为空")
    @DecimalMin(value = "0.0", inclusive = true, message = "额定功率必须大于等于0")
    private BigDecimal ratedPower;
    
    @NotNull(message = "额定电压不能为空")
    @DecimalMin(value = "0.0", inclusive = true, message = "额定电压必须大于等于0")
    private BigDecimal ratedVoltage;
    
    @NotNull(message = "额定电流不能为空")
    @DecimalMin(value = "0.0", inclusive = true, message = "额定电流必须大于等于0")
    private BigDecimal ratedCurrent;
    
    private Date infoUpdateTime;
} 